import request from '@/utils/request'

// 查询设备心跳详情列表
export function listDeviceHeartbeatDetail(query) {
  return request({
    url: '/genius/platform-device-heartbeat-detail/list',
    method: 'get',
    params: query
  })
}

// 查询设备心跳详细信息
export function getDeviceHeartbeatDetailInfo(id) {
  return request({
    url: '/genius/platform-device-heartbeat-detail/' + id,
    method: 'get'
  })
}

// 新增设备心跳详情
export function adddeviceHeartbeatDetail(query) {
  return request({
    url: '/genius/platform-device-heartbeat-detail',
    method: 'post',
    data: query
  })
}

// 修改设备心跳详情
export function updateDeviceHeartbeatDetail(query) {
  return request({
    url: '/genius/platform-device-heartbeat-detail',
    method: 'put',
    data: query
  })
}

// 删除设备心跳详情
export function deldeviceHeartbeatDetail(id) {
  return request({
    url: '/genius/platform-device-heartbeat-detail/' + id,
    method: 'delete'
  })
}

// 导出设备心跳详情
export function exportDeviceHeartbeatDetail() {
    return request({
      url: '/genius/platform-device-heartbeat-detail/export',
      method: 'post'
    })
  }

  //修改状态
  export function updateStatus(query){
    return request({
      url: '/genius/platform-device-heartbeat-detail/update-status',
      method: 'put',
      params: query
    })
  }

   //批量新增
   export function insertBatchHeartbeat(query){
    return request({
      url: '/genius/platform-device-heartbeat-detail/insert-batch',
      method: 'post',
      data:query
    })
  }
